package com.leemz.ch2.design.factory.simplefactory;

public class CourseFactory {
    public static ICourse create(Class<? extends ICourse> cls) {
        try {
            if(null != cls) {
                return cls.newInstance();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
